import request from '@/utils/request'

// 查询压力告警统计结果列表
export function listDispatchPressureAlarmStatistics(query) {
  return request({
    url: '/system/dispatchPressureAlarmStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询压力告警统计结果详细
export function getDispatchPressureAlarmStatistics(pressureAlarmStatisticsId) {
  return request({
    url: '/system/dispatchPressureAlarmStatistics/' + pressureAlarmStatisticsId,
    method: 'get'
  })
}

// 新增压力告警统计结果
export function addDispatchPressureAlarmStatistics(data) {
  return request({
    url: '/system/dispatchPressureAlarmStatistics',
    method: 'post',
    data: data
  })
}

// 修改压力告警统计结果
export function updateDispatchPressureAlarmStatistics(data) {
  return request({
    url: '/system/dispatchPressureAlarmStatistics',
    method: 'put',
    data: data
  })
}

// 删除压力告警统计结果
export function delDispatchPressureAlarmStatistics(pressureAlarmStatisticsId) {
  return request({
    url: '/system/dispatchPressureAlarmStatistics/' + pressureAlarmStatisticsId,
    method: 'delete'
  })
}
